package file;

import java.io.File;

public class MKDirDemo {
    public static void main(String[] args) {
        File dir=new File("./W/Q");
        if(dir.exists()){
            System.out.println("目录已存在");
        }else{
            dir.mkdir();
            System.out.println("整好了");
        }
        File re=new File("./a/c");
        if(re.exists()){
            System.out.println("该目录有了");
        }else{
            re.mkdirs();
            System.out.println("弄出来");
        }
    }
}
